package com.wufun.overseas.joystick.map;

import android.view.InputEvent;

/**
 * Created by xiet on 2015/6/11.
 */
public class KeyMapEvent {
    InputEvent event;//system input event       --save system event for analysing event.
    String customKey;//custom gamepad "KEY".    --correct joystick keymap prevent joystick's key invalid.
    @Deprecated
    int emumapKeyIndex;//emulator key's index in KeyMap.EmuMap.keysKey keysection. {@link EmuMap}.
    String emuKey;//emulator key                --this key value will be sent emulator.

    @Deprecated
    public int getEmumapKeyIndex() {
        return emumapKeyIndex;
    }

    @Deprecated
    public void setEmumapKeyIndex(int emumapKeyIndex) {
        this.emumapKeyIndex = emumapKeyIndex;
    }

    public String getEmuKey() {
        return emuKey;
    }

    public void setEmuKey(String emuKey) {
        this.emuKey = emuKey;
    }

    public String getCustomKey() {
        return customKey;
    }

    public void setCustomKey(String customKey) {
        this.customKey = customKey;
    }

    public InputEvent getEvent() {
        return event;
    }

    public void setEvent(InputEvent event) {
        this.event = event;
    }

    @Override
    public String toString() {
        return "KeyMapEvent{" +
                "event=" + event +
                ", customKey='" + customKey + '\'' +
                ", emumapKeyIndex=" + emumapKeyIndex +
                ", emuKey='" + emuKey + '\'' +
                '}';
    }
}
